package com.xbongbong.paas.bi.pojo;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;
import java.util.Map;

/**
 * 合并节点
 * @author zcp
 * @version v1.0
 * @since v1.0
 */
@Data
@ToString
public class DataSetNodeUnionPojo extends DataSetNodePojo {
    private static final long serialVersionUID = 8320922433543279995L;
    /**
     * 流入节点的节点id集合
     * 合并节点，流入节点至少2个，且最多n个 todo n值待定
     */
    @Min(value = 2, message = "{pojo.msg.dataSetNodeUnion.input.Min}")
    private List<String> input;
    /**
     * 合并节点各列的来源字段
     */
    @NotEmpty(message = "{pojo.msg.dataSetNodeUnion.field.NotEmpty}")
    private List<DataSetNodeFieldPojo> field;
    
    private List<DataSetNodeFieldPojo> hideField;
    /**
     * 过滤条件
     * key：节点id
     * value：筛选条件
     */
    private Map<String, List<DataSetNodeFilterPojo>> filter;
}
